home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d20
/
pulldir.arc
/
PULLDIR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-04-21
|
676b
|
35 lines
#include <stdio.h>
#include <string.h>
#include <memory.h>
#include <dos.h>
#define MAX 255
int field;
int ansi=1, Highlight, Fg, Bg;
unsigned char choices(char choice, char *optstring)
{
/* THIS IS ZERO BASED -- CHOSEN IS 1 BASED */
unsigned char search;
for (search = 0; search <= strlen(optstring); search++)
if(choice == optstring[search])
return(search);
return(255);
}
int main()
{
char pullspec[80];
cls();
locate(2,1);
printf("PULLDIR\nCopyright 1991, by Dana Bell\n");
strcpy(pullspec,"*.*");
editstr(4,1,"Pull what files: ",pullspec,30);
if (!strlen(pullspec))
return(0);
color(3,0);
pulldir(5, 50, pullspec);
}